package com.zhangdi.demo.jdbc;

import org.apache.commons.lang3.NotImplementedException;
import org.apache.shardingsphere.sharding.api.sharding.standard.PreciseShardingValue;
import org.apache.shardingsphere.sharding.api.sharding.standard.RangeShardingValue;
import org.apache.shardingsphere.sharding.api.sharding.standard.StandardShardingAlgorithm;

import java.util.Collection;
import java.util.Properties;

/**
 * @author zhangdi
 * @version 1.0
 * @date 2022.9.2 17:19
 */
public abstract class AbstractConsistentHashAlgorithm implements StandardShardingAlgorithm<Long> {
    protected Properties props;

    @Override
    public Properties getProps() {
        return props;
    }

    @Override
    public String doSharding(Collection<String> collection, PreciseShardingValue<Long> preciseShardingValue) {
        throw new NotImplementedException("未实现");
    }

    @Override
    public Collection<String> doSharding(Collection<String> collection, RangeShardingValue<Long> rangeShardingValue) {
        throw new NotImplementedException("未实现");
    }
}
